import './scss/index.scss'
import PlotDraw from './core/PlotDraw'
import PlotEdit from './core/PlotEdit'
import PlotUtils from './core/PlotUtils'
import * as PlotTypes from './Utils/PlotTypes'
import * as Geometry from './Geometry'

Array.prototype.clone = function () { var a = []; for (var i = 0, l = this.length; i < l; i++) a.push(this[i]); return a; }

class olPlot {
  constructor (map, options) {
    this.plotDraw = new PlotDraw(map, options)
    this.plotEdit = new PlotEdit(map, options)
    this.plotUtils = new PlotUtils(map, options)
  }
  static PlotTypes = PlotTypes
  static Geometry = Geometry
}
export default olPlot
